package com.jingdianjichi.auth.api;

import com.jingdianjichi.auth.entity.AuthUserDTO;
import com.jingdianjichi.auth.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * ClassName:UserFeignService
 * Package:com.jingdianjichi.auth.api
 * Description:
 *
 * @Author fst
 * @Create 2025/1/4 17:00
 * @Version 1.0
 */
@FeignClient("jc-club-auth")
public interface UserFeignService
{
    @RequestMapping("/user/getUserInfo")
    Result<AuthUserDTO> getUserInfo(@RequestBody AuthUserDTO authUserDTO);

    @RequestMapping("/user/listByIds")
    Result<List<AuthUserDTO>> listByIds(@RequestBody List<String> userNameList);
}
